getSelectedItemId

Return

The ID of the currently selected item or INVALID_ROW_ID if isShowing == false.

See also